<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class Config extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'config';
    public $timestamps = false;

    protected $casts = ['content' => 'array'];

    const TYPE = [
        'string' => '字符串',
        'number' => '数字',
        'array' => 'JSON',
        'text' => '多行文本',
        'editor' => '富文本',
        'select' => '下拉单选',
        'multipleSelect' => '下拉多选',
        'radio' => '单选',
        'checkbox' => '多选',
        'image' => '单图',
        'multipleImage' => '多图',
        'file' => '单文件',
        'multipleFile' => '多文件',
        'time' => '时间',
        'date' => '日期',
        'datetime' => '日期时间',
        'switch' => '开关',
        'mobile' => '手机号',
        'url' => '链接',
        'password' => '密码',
        'email' => '邮箱'
    ];


}
